#鸿蒙开源了！！！！！！
#我准备用qt5重制一下
import requests,json
in_res = input('请输入城市,精确到省(这个api我无法获取单个城市，北京.上海除外)')
res = requests.get('https://lab.isaaclin.cn/nCoV/api/area?latest=1&province={}'.format(in_res))
api = res.content.decode('utf-8')
api_list = json.loads(api)
name = api_list['results']
currentConfirmedCount = name[0]['currentConfirmedCount']
confirmedCount = name[0]['confirmedCount']
suspectedCount = name[0]['suspectedCount']
curedCount = name[0]['curedCount']
deadCount = name[0]['deadCount']
comment = name[0]['comment']
print('现存确诊人数：{}'.format(currentConfirmedCount))
print('累计确诊人数：{}'.format(confirmedCount))
print('疑似感染人数：{}'.format(suspectedCount))
print('治愈人数：{}'.format(curedCount))
print('累计死亡人数：{}'.format(deadCount))
if comment == '':
    pass
else:
    print('其他信息：{}'.format(comment))